home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
mac
/
LOGIC Apple II 5.25" Library - ProDOS
/
PRO088A.dsk
/
PRINTER.TEST.bas
< prev
next >
Wrap
BASIC Source File
|
2012-02-16
|
8KB
|
196 lines
1 REM PRINTER TEST
2 REM BY MICHAEL A. COFFEY
8 D$ = CHR$(4)
10 EX$ = "THIS IS EXTENDED (9 CPI)
12 P$ = "THIS IS PICA (12 CPI)"
14 E$ = "THIS IS ELITE (10 CPI)"
15 CO$ = "THIS IS CONDENSED (15 CPI)
16 M$ = "THIS IS MICRON (17 CPI)"
17 CM$ = "THIS IS COMPRESSED (17.6 CPI)
18 EM$ = "THIS IS THE EMPHASIZED MODE"
20 NM$ = "THIS IS THE NEAR LETTER QUALITY MODE"
22 N1$ = " PRINTER TEST FOR: "
24 N2$ = " MAKE SURE PRINTER IS TURNED ON"
26 SB$ = " PRESS <SPACEBAR> TO CONTINUE: "
28 IC$ = "THIS IS THE COLOR "
51 M2$ = "THANK YOU FOR CHOOSING THE BOTTOM LINE"
52 M3$ = "FOR SERVICE OR SUPPORT, FEEL FREE TO"
53 M4$ = "CALL (314) 837-1200"
54 M5$ = " THE BOTTOM LINE"
55 M6$ = " 16 CROSS KEYS SHOPPING CENTER"
56 M7$ = " FLORISSANT MO 63033"
57 M8$ = " THE HELPING YOUR"
58 M9$ = " BOTTOM KIDS MAKE"
59 MA$ = " LINE THE GRADE"
500 REM MENU
510 HOME : HTAB 12: PRINT "PRINTER TEXT MENU"
520 MN = 0: PRINT : PRINT
535 MN = MN +1: HTAB 5: PRINT MN;") IMAGEWRITER II"
537 MN = MN +1: HTAB 5: PRINT MN;") IMAGEWRITER II COLOR"
550 MN = MN +1: HTAB 5: PRINT MN;") EPSON AP-80"
560 MN = MN +1: HTAB 5: PRINT MN;") EPSON LX-80/86"
570 MN = MN +1: HTAB 5: PRINT MN;") BROTHER HR-20"
575 MN = MN +1: HTAB 5: PRINT MN;") EPSON LX-800"
580 MN = MN +1: HTAB 5: PRINT MN;") IMAGEWRITER LQ"
590 MN = MN +1: HTAB 5: PRINT MN;") QUIT"
600 PRINT : PRINT : HTAB 10: PRINT "ENTER CHOICE: ";: GET AN$: PRINT AN$
610 IF AN$ <"1" OR ASC(AN$) -48 >MN THEN PRINT CHR$(7): CALL -998: CALL -998: CALL -998: CALL -998: GOTO 600
615 IC$ = "N": IF AN$ = "2" THEN IC$ = "Y"
620 AN = ASC(AN$) -48
630 ON AN GOSUB 1000,1000,4000,5000,6000,7000,8000,640
640 PRINT CHR$(4);"RUN HELLO2"
1000 REM IMAGEWRITER II BLACK AND COLOR
1010 HOME : VTAB 6: PRINT N1$;"IMAGEWRITER II": PRINT : PRINT : PRINT N2$: VTAB 22: PRINT SB$;: GET AN$: PRINT AN$
1020 PRINT D$;"PR#1"
1022 PRINT CHR$(14): PRINT "IMAGEWRITER DEMO": PRINT CHR$(15)
1023 PRINT : PRINT : PRINT "This is a sample APPLE IMAGEWRITER II printout"
1025 REM 9 CPI
1026 PRINT CHR$(27); CHR$(110): PRINT EX$
1029 REM ELITE
1030 PRINT CHR$(27); CHR$(69): PRINT E$
1039 REM PICA
1040 PRINT CHR$(27); CHR$(78): PRINT P$
1042 REM CONDENSED
1043 PRINT CHR$(27); CHR$(113): PRINT CO$
1045 REM MICRON
1050 PRINT CHR$(27); CHR$(81): PRINT M$
1055 REM BACK TO PICA
1057 PRINT CHR$(27); CHR$(35); CHR$(14)
1058 PRINT "EXPANDED TYPE IS AN OPTION ON ANY PRINT SIZE"
1059 PRINT CHR$(15)
1060 PRINT CHR$(27); CHR$(78)
1063 PRINT CHR$(27); CHR$(88): PRINT "UNDERLINE IS AN OPTION ON ANY PRINT SIZE": PRINT CHR$(27); CHR$(89)
1064 PRINT CHR$(27); CHR$(78): PRINT "This is Pica"
1065 PRINT CHR$(27); CHR$(112): PRINT "This is Pica proportional"
1066 PRINT CHR$(27); CHR$(69): PRINT "This is Elite"
1067 PRINT CHR$(27); CHR$(80): PRINT "This is Elite proportional"
1068 PRINT CHR$(27); CHR$(78)
1069 REM NLQ
1070 PRINT CHR$(27); CHR$(97); CHR$(50): PRINT NM$
1075 REM SUPERSCRIPT - SUBSCRIPT
1080 PRINT : PRINT "AND THIS IS ";: PRINT CHR$(27); CHR$(120);: PRINT "SUPERSCRIPT";: PRINT CHR$(27); CHR$(122);: PRINT " AND THIS IS ";: PRINT CHR$(27); CHR$(121);: PRINT "SUBSCRIPT"
1085 REM NORMAL (SUBSCRIPT OFF, DRAFT, ELITE
1090 PRINT CHR$(27); CHR$(122): PRINT CHR$(27); CHR$(69): PRINT CHR$(27); CHR$(97); CHR$(49)
1095 PRINT : IF IC$ = "N" THEN GOTO 20010
1100 REM IMAGEWRITER COLOR OPTION
1110 PRINT CHR$(27); CHR$(75);"1"; CHR$(49);: PRINT C$;" YELLOW"
1120 PRINT CHR$(27); CHR$(75);"2"; CHR$(50);: PRINT C$;" RED"
1130 PRINT CHR$(27); CHR$(75);"3"; CHR$(51);: PRINT C$;" BLUE"
1140 PRINT CHR$(27); CHR$(75);"4"; CHR$(52);: PRINT C$;" ORANGE"
1150 PRINT CHR$(27); CHR$(75);"5"; CHR$(53);: PRINT C$;" GREEN"
1160 PRINT CHR$(27); CHR$(75);"6"; CHR$(54);: PRINT C$;" PURPLE"
1165 PRINT CHR$(27); CHR$(75);"0"; CHR$(48);: PRINT C$;" BLACK"
1170 PRINT CHR$(27); CHR$(78)
1172 PRINT CHR$(27); CHR$(36): REM 96 ASCII CHAR SET
1180 GOTO 20010
4000 REM EPSON AP-80
4010 HOME : VTAB 6: PRINT N1$;"EPSON AP-80": PRINT : PRINT : PRINT N2$: VTAB 22: PRINT SB$;: GET AN$: PRINT AN$
4020 PRINT D$;"PR#1"
4022 PRINT CHR$(27);"L015"
4025 REM 9 CPI
4026 PRINT CHR$(27); CHR$(110): PRINT EX$
4029 REM PICA
4030 PRINT CHR$(27); CHR$(78): PRINT P$
4039 REM ELITE
4040 PRINT CHR$(27); CHR$(69): PRINT E$
4042 REM CONDENSED
4043 PRINT CHR$(27); CHR$(113): PRINT CO$
4045 REM MICRON
4050 PRINT : PRINT CHR$(27); CHR$(81): PRINT M$
4055 REM RESET TO NORMAL
4060 PRINT CHR$(27); CHR$(78)
4065 REM NLQ
4070 PRINT CHR$(27); CHR$(72): PRINT NM$
4075 REM SUPERSCRIPT - SUBSCRIPT
4080 PRINT : PRINT "AND THIS IS ";: PRINT CHR$(27); CHR$(98); CHR$(49);: PRINT "SUPERSCRIPT";: PRINT CHR$(27); CHR$(98); CHR$(48);: PRINT " AND THIS IS ";: PRINT CHR$(27); CHR$(98); CHR$(50);: PRINT "SUBSCRIPT"
4085 REM NORMAL (SUBSCRIPT OFF, DRAFT, ELITE
4090 PRINT CHR$(27); CHR$(99): PRINT CHR$(27); CHR$(78)
4095 PRINT CHR$(27);"L015"
4100 GOTO 20010
5000 REM EPSON LX-80/86
5010 HOME : VTAB 6: PRINT N1$;"EPSON LX-80/86": PRINT : PRINT : PRINT N2$: VTAB 22: PRINT SB$;: GET AN$: PRINT AN$
5020 PRINT D$;"PR#1"
5022 PRINT "EPSON LX SERIES DEMONSTRATION"
5023 PRINT : PRINT
5025 PRINT CHR$(27);"l"; CHR$(15)
5029 REM ELITE
5030 PRINT CHR$(27);"M": PRINT E$
5039 REM PICA
5040 PRINT P$
5042 REM COMPRESSED (17.6 CPI)
5043 PRINT CHR$(15): PRINT CM$
5055 REM RESET TO NORMAL
5060 PRINT CHR$(27);"x"; CHR$(0);
5062 PRINT CHR$(27);"-1": REM UNDERLINE ON
5063 PRINT "YOU CAN UNDERLINE IN ANY MODE"
5064 PRINT CHR$(27);"-0"
5065 REM NLQ
5070 PRINT CHR$(27);"x"; CHR$(1): PRINT NM$
5073 REM SUPERSCRIPT - SUBSCRIPT
5075 PRINT : PRINT "AND THIS IS ";
5076 PRINT CHR$(27);"x"; CHR$(0);
5077 PRINT CHR$(27);"S"; CHR$(0);: PRINT "SUPERSCRIPT";
5078 PRINT CHR$(27);"x"; CHR$(1);
5080 PRINT " AND THIS IS ";
5081 PRINT CHR$(27);"x"; CHR$(0);
5083 PRINT CHR$(27);"S"; CHR$(1);: PRINT "SUBSCRIPT"
5085 REM RETURN TO NORMAL SETTING
5090 PRINT CHR$(27);"@"
5095 PRINT CHR$(27);"l"; CHR$(15)
5100 REM ITALIC
5110 PRINT CHR$(27);"4"
5112 PRINT "THIS IS ITALIC - This is italic"
5114 PRINT CHR$(27);"5"
5200 GOTO 20010
6000 REM BROTHER HR-20
6010 HOME : VTAB 6: PRINT N1$;"BROTHER HR-20": PRINT : PRINT : PRINT N2$: VTAB 22: PRINT SB$;: GET AN$: PRINT AN$
6020 PRINT D$;"PR#1"
6022 PRINT "BROTHER HR-20 DEMONSTRATION"
6023 PRINT : PRINT
6025 PRINT "THIS IS NORMAL PRINTING - This is normal printing"
6030 PRINT CHR$(27);"E": PRINT "THIS IS UNDERLINE";
6035 PRINT CHR$(27);"X";
6039 PRINT " - This is underline"
6043 PRINT CHR$(27);"H": PRINT "THIS IS AUTO STRIKEOUT";
6050 PRINT CHR$(27);"X";
6055 PRINT " - This is auto strikeout"
6060 PRINT
6064 PRINT CHR$(27);"O";"THIS IS BOLDFACE";
6070 PRINT CHR$(27);"X";
6073 PRINT " - Printed 2X with 1/180 inch offset"
6075 PRINT
6076 PRINT CHR$(27);"W";"THIS IS SHADOW PRINT";
6077 PRINT CHR$(27);"X";
6078 PRINT " - Printed 2X with 1/120 inch offset"
6080 PRINT
6081 PRINT CHR$(27);"F";
6083 PRINT "THIS IS DOUBLE STRIKE";
6085 PRINT CHR$(27);"X";
6090 PRINT " - Printed 2X with no offset"
6100 PRINT : PRINT
6110 PRINT "The HR-20 supports porportional spacing": PRINT "and has very limited graphics ability"
6120 PRINT : PRINT
6200 GOTO 20010
7000 REM EPSON LX-800
7010 HOME : VTAB 6
7020 PRINT "Use LX-80/86 test."
7030 VTAB 22: PRINT "PRESS SPACEBAR TO CONTINUE: ";: GET A$: PRINT A$
7040 GOTO 500
8000 REM IMAGEWRITER LQ
8010 HOME : VTAB 6
8020 PRINT "Use ImageWriter II test"
8030 VTAB 22: PRINT "PRESS SPACEBAR TO CONTINUE: ";: GET A$: PRINT A$
8040 GOTO 500
20000 REM END MESSAGE
20010 PRINT M2$
20011 PRINT
20012 PRINT M3$
20013 PRINT M4$
20014 PRINT M5$
20015 PRINT M6$
20016 PRINT M7$: PRINT
20017 PRINT M8$
20018 PRINT M9$
20019 PRINT MA$
20020 PRINT CHR$(4);"PR#0"
20030 RETURN